class Debt {
    /**
     * 欠款id
     */
    debtId: number | 0 = 0;

    /**
     * 总金额
     */
    amount: number  = 0;

    /**
     * 本金
     */
    principal: number  = 0;

    /**
     * 利息
     */
    interest: number  = 0;

    /**
     * 滞纳金
     */
    lateFee: number  = 0;

    /**
     * 违约金
     */
    liquidated: number  = 0;

    /**
     * 罚息
     */
    extraInterest: number= 0;

    /**
     * 手续费
     */
    commission: number  = 0;

    /**
     * 其它费用
     */
    otherFee: number = 0;

    /**
     * 借款日期
     */
    loanDate: string = null;

    /**
     * 年利率
     */
    annualRate: number= 0;

    /**
     * 还款期限
     */
    repayDate: string  = null;

    /**
     * 逾期利率
     */
    overdueRate: number  = 0;

    /**
     * 创建时间
     */
    createdTime: string  = null;

    constructor(debtId?: number, amount?: number, principal?: number, interest?: number,
                lateFee?: number, liquidated?: number, extraInterest?: number,
                commission?: number, otherFee?: number, loanDate?: string,
                annualRate?: number, repayDate?: string, overdueRate?: number,
                createdTime?: string) {
        this.debtId = debtId ?? 0;
        this.amount = amount ?? 0;
        this.principal = principal ?? 0;
        this.interest = interest ?? 0;
        this.lateFee = lateFee ?? 0;
        this.liquidated = liquidated ?? 0;
        this.extraInterest = extraInterest ?? 0;
        this.commission = commission ?? 0;
        this.otherFee = otherFee ?? 0;
        this.loanDate = loanDate ?? null;
        this.annualRate = annualRate ?? 0;
        this.repayDate = repayDate ?? null;
        this.overdueRate = overdueRate ?? 0;
        this.createdTime = createdTime ?? null;
    }
}

export default Debt;
/**
 * 欠款
 */